-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multi-output models with bioimageio spec 0.5 #117
base: main
Are you sure you want to change the base?
Conversation
…nto multi-output-model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tried running it, but added a few comments, mostly related to clarity.
I don't really have an overview of the latest spec and instanseg developments, so I'll go with what you think is best. Will discover if I have any strong opinions after it's merged & I've played around with it some more.
Add support for multi-output models using the bioimageio 0.5.x model spec.
We currently handle logits and embeddings by adding them to the measurements of output objects. We don't have a good way to name measurements yet; hopefully we can get axis names at some point in the future of the bioimageio spec. Detection classes are set as PathClass on the output objects.
Detection classes are supported with a NominalOrOrdinalDataDescr. If logits are present too, we try to match the names of outputs and logits. Otherwise, we default to "Class 1", "Logit 1" etc.
It's not totally clear how to handle multiple classes. "Class 1: Class A"?
Semantic segmentation is recognised as an output type, but support is not currently implemented (suggest this could be a future PR for now?).
Superset of #100
See qupath/qupath-bioimageio-spec#12